package shared

import scala.math.BigDecimal.RoundingMode
import Implicits._

/**
  * Created by yz on 2019/4/24
  */

object Shared {

  val userStr = "fat_user"
  val adminStr = "fat_admin"

  def getResult(score: BigDecimal) = {
    score match {
      case x if x <= 0.25 => "脂肪肝低风险"
      case x if x > 0.25 && x <= 0.5 => "轻度脂肪肝风险"
      case x if x > 0.5 && x <= 1 => "中/重度脂肪肝风险"
    }

  }


}
